package com.ricky.inner;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Component;

/**
 * SpringBootApplication05类中如果没有使用@ComponentScan注解则不能加载到bean容器中
 */
@Component
public class InitTest2 implements InitializingBean {
    public void afterPropertiesSet() throws Exception {
        System.out.println("bean2初始化完毕了");
    }
}
